<?php
include("includes/db.conn.php");
include("includes/conf.class.php");




$page=$_POST['page'];
if($page=='load_offers')
{
echo $bsiCore->roomOffers($_POST['roomtypeid']);
}
elseif($page=='load_gallery')
{
	echo $bsiCore->roomtype_photos($_POST['roomtypeid']);
}
elseif($page=='load_extra_features')
{
	
	echo $bsiCore->roomExtraFeatures($_POST['roomtypeid']);
}
elseif($page=='load_total_price')
{
	echo $bsiCore->getTotalPrice($_POST['room_type_id'],$_POST['extrasPrice'],$_POST['offerPrice']);
}
elseif($page=='load_facilities')
{
	echo $bsiCore->roomFacilities($_POST['roomtypeid']);
}
elseif($page=='load_room_description')
{
	echo $bsiCore->roomtypedesc($_POST['roomtypeid'],$_POST['count']);
}
elseif($page=='load_offers_gallery')
{
	echo '<div class="slides col">
                        <div class="slides_container" >';
                        	
    echo $bsiCore->roomtype_photos($_POST['roomtypeid'],'1');                                                      
                            
                        echo '</div>
                        <a href="#" class="prev">
                            <img src="images/arrow-prev.png" width="24" height="43" alt="Arrow Prev"></a>
                        <a href="#" class="next">
                            <img src="images/arrow-next.png" width="24" height="43" alt="Arrow Next"></a>
                    </div>';
}
elseif($page=='load_offers_desc')
{
	echo $bsiCore->roomOffersDesc($_POST['roomtypeid'],$_POST['offerid']);
}
elseif($page=='offer_price')
{
	echo $bsiCore->getOfferPrice($_POST['room_type_id'],$_POST['offer_id']);
}
elseif($page=='change_total_by_currency')
{
	//echo USD2INR($_POST['totalcost']);
	echo $bsiCore->ChangeTotalByCurrency($_POST['currency'],$_POST['totalcost']);
	
	
}
elseif($page=='change_saved_by_currency')
{
	echo $bsiCore->ChangeSavedByCurrency($_POST['currency'],$_POST['totalsaved']);
}
?>
